package com.iotechn.unimall.data.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dobbinsoft.fw.core.annotation.doc.ApiEntity;
import com.dobbinsoft.fw.core.annotation.doc.ApiField;
import com.dobbinsoft.fw.support.domain.SuperDO;
import com.iotechn.unimall.data.enums.StatusType;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * Generate Code By Unimall
 */
@Data
@ApiEntity(description = "")
@TableName("unimall_equipment")
public class EquipmentDO extends SuperDO {

    @ApiField(description ="id")
    private Long id;
    @ApiField(description ="equipment_type")
    private String equipmentType;
    @ApiField(description ="equipment_no")
    private String equipmentNo;
    @ApiField(description ="room_name")
    private String roomName;
    @ApiField(description ="room_id")
    private Long roomId;
    @ApiField(description ="inspection_items")
    private String inspectionItems;
    @ApiField(description ="二维码")
    private String code;
    @ApiField(description ="status")
    private Integer status;
    @ApiField(description ="gmt_update")
    private Date gmtUpdate;
    @ApiField(description ="gmt_create")
    private Date gmtCreate;

    @ApiField(description ="轮数id")
    @TableField(exist = false)
    private Long roundsId;
    @ApiField(description ="扫码")
    @TableField(exist = false)
    private Boolean qrCode;

    @ApiField(description ="设备类型集合")
    @TableField(exist = false)
    private List<EquipmentDO> equipmentTypeList;
    @ApiField(description ="设备编号集合")
    @TableField(exist = false)
    private List<EquipmentDO> equipmentNoList;
    @ApiField(description ="巡检记录集合")
    @TableField(exist = false)
    private List<InspectionDO> inspectionDOList;
    @ApiField(description ="电池组集合")
    @TableField(exist = false)
    private List<EquipmentDO> batteryList;
    @ApiField(description ="电池组记录集合")
    @TableField(exist = false)
    private List<InspectionDO> batteryInspectionList;
}
